﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using CommonHelper;
using CommonLibrary.Models;
using CommonLibrary.WorkFlow;

namespace CommonConfig
{
    class Program
    {
        private static List<string> files = new List<string>() 
        {
            "请假单.xml",
            "特殊考勤单.xml",
        };

        static bool ReturnCheck(string condition)
        {            
            Console.WriteLine(condition);
            return false;
        }

        static void Main(string[] args)
        {            
            foreach (var file in files)
            {
                string filename = Path.Combine(
                    AppDomain.CurrentDomain.BaseDirectory,
                    "workflow\\", file);

                //var chart = new Flowchart(filename);
                //var step = chart.GetStart(ReturnCheck);

                //Console.WriteLine("step: {0}, task: {1}, name: {2}",
                //    step.StepId, step.TaskId, step.Name);
            }
        }

    }
}
